package cn.stylefeng.guns.modular.gridsystem.model.param;

import cn.stylefeng.guns.core.pojo.base.param.BaseParam;

import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;

/**
 * 阈值配置项
 *
 * @author ssy
 * @date 2021/09/14 11:47
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class BizThreholdItemParam extends BaseParam {

    /**
     * id
     */
    @NotNull(message = "id不能为空",groups = {edit.class})
    private Integer id;

    /**
     * 阈值id
     */
    @NotNull(message = "网关id不能为空",groups = {add.class,edit.class})
    private Integer gatewayId;

    /**
     * 网关通道
     */
    @NotNull(message = "网关通道不能为空",groups = {add.class,edit.class})
    private String gatewayChannel;

    /**
     * 阈值分数
     */
    @NotNull(message = "阈值分数不能为空",groups = {add.class,edit.class})
    private String thresholdValue;

}
